package org.scboy.dbms.api;

import java.util.List;
import java.util.Map;

import org.scboy.utils.caches.dbms.entity.PermissionEntity;
import org.scboy.utils.caches.dbms.entity.SystemConfigEntity;

public interface IPermissionManager {
	
	/**
	 * 更新应用权限配置单
	 * @param permissions
	 * @param appName
	 */
	public void updatePermission(List<Map<String, String>> permissions,String appName);
	
	/**
	 * 根据请求地址获取权限地址信息
	 * @param path
	 * @return
	 */
	public PermissionEntity getPermission(String appName,String path);
	
	/**
	 * 获取配置值
	 * @param code
	 * @return
	 */
	public String getSystemConfigValue(String code);
	
	/**
	 * 获取配置对象
	 * @param code
	 * @return
	 */
	public SystemConfigEntity getSystemConfig(String code);
}
